package com.hr.web.controller.system;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试controller
 */
@Controller
public class MyTestController {

    private String prefix = "system/clock";


    @GetMapping("/test")
    public String test(){
        return "hello world!";
    }

    @GetMapping("/clock")
    public String clock(){
        return prefix + "/clock";
    }
}
